import request from '@/utils/request'

// 查询heal列表
export function listHeal(query) {
  return request({
    url: '/system/heal/list',
    method: 'get',
    params: query
  })
}

// 查询heal详细
export function getHeal(id) {
  return request({
    url: '/system/heal/' + id,
    method: 'get'
  })
}

// 新增heal
export function addHeal(data) {
  return request({
    url: '/system/heal',
    method: 'post',
    data: data
  })
}

// 修改heal
export function updateHeal(data) {
  return request({
    url: '/system/heal',
    method: 'put',
    data: data
  })
}

// 删除heal
export function delHeal(id) {
  return request({
    url: '/system/heal/' + id,
    method: 'delete'
  })
}
